<?xml version="1.0"?>
<xs:schema xmlns:tns="http://Microsoft.ConnectionEngine.Messaging" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" elementFormDefault="qualified" targetNamespace="http://Microsoft.ConnectionEngine.Messaging" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="Microsoft.ConnectionEngine.RoutingServices.WebReferences.ConnectionEngineAdapter.Reference1, Microsoft.ConnectionEngine.RoutingServices.WebReferences, Version=2.1.0.0, Culture=neutral, PublicKeyToken=169f60eaebbd2005" namespace="http://microsoft.com/wsdl/types/" />
  <xs:annotation>
    <xs:appinfo>
      <b:references xmlns:b="http://schemas.microsoft.com/BizTalk/2003">
        <b:reference targetNamespace="http://microsoft.com/wsdl/types/" />
      </b:references>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ConnectionEngineMessage" nillable="true" type="tns:ConnectionEngineMessage">
    <xs:annotation>
      <xs:appinfo>
        <b:properties>
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='ID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='CreationTime' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='SessionToken' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='InteractionClass' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='InteractionType' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Conversation' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='ConversationID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Conversation' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='OriginalMessageID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Sender' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='OrganisationID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Sender' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='ConnectionEngineUserID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Sender' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='OrganisationUserID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Sender' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='URI' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Receiver' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='OrganisationID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Receiver' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='ConnectionEngineUserID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Receiver' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='OrganisationUserID' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Receiver' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='URI' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Status' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Code' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Status' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Description' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
          <b:property distinguished="true" xpath="/*[local-name()='ConnectionEngineMessage' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Header' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Status' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']/*[local-name()='Details' and namespace-uri()='http://Microsoft.ConnectionEngine.Messaging']" />
        </b:properties>
      </xs:appinfo>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="ConnectionEngineMessage">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="Header" type="tns:ConnectionEngineMessageHeader" />
      <xs:element minOccurs="0" maxOccurs="1" name="Body" type="tns:ConnectionEngineMessageBody" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConnectionEngineMessageHeader">
    <xs:sequence>
      <xs:element xmlns:q1="http://microsoft.com/wsdl/types/" minOccurs="1" maxOccurs="1" name="ID" type="q1:guid" />
      <xs:element minOccurs="1" maxOccurs="1" name="CreationTime" type="xs:dateTime" />
      <xs:element minOccurs="0" maxOccurs="1" name="SessionToken" type="xs:string" />
      <xs:element minOccurs="1" maxOccurs="1" name="InteractionClass" type="xs:int" />
      <xs:element minOccurs="1" maxOccurs="1" name="InteractionType" type="xs:int" />
      <xs:element minOccurs="0" maxOccurs="1" name="Conversation" type="tns:ConnectionEngineConversation" />
      <xs:element minOccurs="0" maxOccurs="1" name="Sender" type="tns:ConnectionEngineEndPoint" />
      <xs:element minOccurs="0" maxOccurs="1" name="Receiver" type="tns:ConnectionEngineEndPoint" />
      <xs:element minOccurs="0" maxOccurs="1" name="Status" type="tns:ConnectionEngineStatus" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConnectionEngineConversation">
    <xs:sequence>
      <xs:element xmlns:q2="http://microsoft.com/wsdl/types/" minOccurs="1" maxOccurs="1" name="ConversationID" type="q2:guid" />
      <xs:element xmlns:q3="http://microsoft.com/wsdl/types/" minOccurs="1" maxOccurs="1" name="OriginalMessageID" type="q3:guid" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConnectionEngineEndPoint">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="OrganisationID" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="ConnectionEngineUserID" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="OrganisationUserID" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="URI" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConnectionEngineStatus">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="Code" type="xs:int" />
      <xs:element minOccurs="0" maxOccurs="1" name="Description" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="Details" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConnectionEngineMessageBody">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="Payload" type="tns:ConnectionEnginePayload" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ConnectionEnginePayload">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="EncryptionType" type="tns:CryptoTypes" />
      <xs:element minOccurs="0" maxOccurs="1" name="Key" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="IV" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="Content" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="CryptoTypes">
    <xs:restriction base="xs:string">
      <xs:enumeration value="encTypeNone" />
      <xs:enumeration value="encTypeDES" />
      <xs:enumeration value="encTypeRC2" />
      <xs:enumeration value="encTypeRijndael" />
      <xs:enumeration value="encTypeTripleDES" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="ConnectionEngineMessageHeader" nillable="true" type="tns:ConnectionEngineMessageHeader" />
  <xs:element name="ConnectionEngineConversation" nillable="true" type="tns:ConnectionEngineConversation" />
  <xs:element name="ConnectionEnginePayload" nillable="true" type="tns:ConnectionEnginePayload" />
  <xs:element name="CryptoTypes" type="tns:CryptoTypes" />
  <xs:element name="ConnectionEngineMessageBody" nillable="true" type="tns:ConnectionEngineMessageBody" />
  <xs:element name="ConnectionEngineStatus" nillable="true" type="tns:ConnectionEngineStatus" />
  <xs:element name="ConnectionEngineEndPoint" nillable="true" type="tns:ConnectionEngineEndPoint" />
</xs:schema>